package javax.microedition.midlet;

import javax.microedition.io.ConnectionNotFoundException;

public abstract class MIDlet {
  protected MIDlet() {

  }

  protected abstract void startApp() throws MIDletStateChangeException;

  protected abstract void pauseApp();

  protected abstract void destroyApp(boolean unconditional) throws MIDletStateChangeException;

  public final void notifyDestroyed() {

  }

  public final void notifyPaused() {

  }

  public final String getAppProperty(final String key) {
    throw new RuntimeException();
  }

  public final void resumeRequest() {

  }

  public final boolean platformRequest(final String URL) throws ConnectionNotFoundException {
    return false;
  }

  public final int checkPermission(final String permission) {
    return Integer.MIN_VALUE;
  }
}